import 'package:share_fit/app/models/base_model.dart';

class FutureWeatherModel extends BaseModel {
  /// 天气数据的发布时间,格林尼治时间，单位：秒。
  late int? weatherUpdateTimeStamp;

  /// 未来24小时天气信息列表
  final List hourWeatherList;

  /// 未来7天气信息列表
  final List dayWeatherList;

  FutureWeatherModel(this.hourWeatherList, this.dayWeatherList, {this.weatherUpdateTimeStamp});

  @override
  bool from(Map map) {
    // TODO: implement from
    throw UnimplementedError();
  }

  @override
  toMap() {
    return {'weatherUpdateTimeStamp': weatherUpdateTimeStamp, 'hourWeatherList': hourWeatherList, 'dayWeatherList': dayWeatherList};
  }

  @override
  // TODO: implement props
  List<Object?> get props => [];
}
